{extend name="layout_modal" /}
{block name="css"}
<link rel="stylesheet" href="{$statics}plugins/select2/select2.css">
{/block}
{block name="script"}
<script src="{$statics}plugins/select2/select2.full.min.js"></script>
{/block}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
  <div class="row">
    <div class="box">
      <!-- /.box-header -->
      <!-- form start -->
      <form role="form" action="{:url('data_update')}">
        <div class="box-body">
          <div class="form-group">
            <label for="exampleInputEmail1">标签名字</label>
            <input type="text" class="form-control" placeholder="标签名字" name="tagname" value="{$info.tagname}">
          </div>
          {in name="uinfo.roleid" value="1,4"}
          <div class="form-group">
            <label for="exampleInputEmail1">所属经销商</label>
            <select class="form-control" name="tagdealer">
              <option value="">请选择</option>
              {volist name=":get_model_func('AdminUser', 'list_datad', ['roleid'=>'6'], 1, 100, 'userid, fullname', 'userid asc')" id="v"}
              <option value="{$v.userid}" {eq name="info.tagdealer" value="$v.userid"} selected {/eq}>{$v.fullname}</option>
              {/volist}
            </select>
          </div>
          {/in}
          <div class="form-group">
            <label for="exampleInputEmail1">状态</label>
            <div>
              <label><input type="radio" name="tagstatus" {eq name="info.tagstatus" value="1"} checked {/eq} value="1"> 显示</label>
              <label><input type="radio" name="tagstatus" {eq name="info.tagstatus" value="0"} checked {/eq} value="0"> 隐藏</label>
            </div>
          </div>
        </div>
        <!-- /.box-body -->
        <input type="hidden" value="{$info.id}" name="id">
      </form>
    </div>
  </div>
</section>
<!-- /.content -->
{/block}